package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.FamilyMember;
import com.zzyl.nursing.dto.QueryDeviceDataListByDayDto;
import com.zzyl.nursing.dto.AddElderDto;
import com.zzyl.nursing.dto.MemberElderDto;
import com.zzyl.nursing.dto.UserLoginRequestDto;
// import com.zzyl.nursing.vo.FamilyMemberElderPageVo;
import com.zzyl.nursing.vo.FamilyMemberVo;
import com.zzyl.nursing.vo.LoginVo;
import com.zzyl.nursing.vo.QueryDeviceDataListByDayVo;

import java.util.List;
import com.zzyl.nursing.vo.MemberListVo;

import java.util.List;

/**
 * 老人家属Service接口
 * 
 * @author ruoyi
 * @date 2024-09-19
 */
public interface IFamilyMemberService extends IService<FamilyMember>
{

    /**
     * 小程序登录
     * @param dto
     * @return
     */
    LoginVo login(UserLoginRequestDto dto);
/*
* 按天统计数据
* */
    List<QueryDeviceDataListByDayVo> queryDeviceDataListByDay(QueryDeviceDataListByDayDto dto);
    /*
     * 按周统计数据
     * */
    List<QueryDeviceDataListByDayVo> queryDeviceDataListByWeek(QueryDeviceDataListByDayDto dto);

    int add(AddElderDto addElderDto);

    List<FamilyMemberVo> selectAll();


    List<MemberListVo> listByPage();

    int deleteElder(Long id);

    // boolean addFamilyMember(MemberElderDto dto);

    // List<FamilyMemberElderPageVo> getFamilyMemberPageListData();
    //
    // void deleteMemberAndElderRelation(Long id);
}
